import request from '@/utils/request'

// 查询职称信息列表all
export function listBooktitleAll() {
  return request({
    url: '/teaching/booktitle/listAll',
    method: 'get',
  })
}

// 查询职称信息列表
export function listBooktitle(query) {
  return request({
    url: '/teaching/booktitle/list',
    method: 'get',
    params: query
  })
}

// 查询职称信息详细
export function getBooktitle(booktitleId) {
  return request({
    url: '/teaching/booktitle/' + booktitleId,
    method: 'get'
  })
}

// 新增职称信息
export function addBooktitle(data) {
  return request({
    url: '/teaching/booktitle',
    method: 'post',
    data: data
  })
}

// 修改职称信息
export function updateBooktitle(data) {
  return request({
    url: '/teaching/booktitle',
    method: 'put',
    data: data
  })
}

// 删除职称信息
export function delBooktitle(booktitleId) {
  return request({
    url: '/teaching/booktitle/' + booktitleId,
    method: 'delete'
  })
}
